Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复 java.lang.NoSuchMethodError #2354

Merged
merged 2 commits into from
Nov 18, 2022
Merged

修复 java.lang.NoSuchMethodError #2354

merged 2 commits into from
Nov 18, 2022

Conversation

zhaodice
Copy link
Contributor

修复在较低版本的安桌系统的报错 java.lang.NoSuchMethodError: No virtual method getDeclaredAnnotation(Ljava/lang/Class;)L

当函数不存在作null处理

fix java.lang.NoSuchMethodError: No virtual method getDeclaredAnnotation(Ljava/lang/Class;)L
@Him188
Copy link
Member

Him188 commented Nov 18, 2022

请执行一次 reformat

@zhaodice
Copy link
Contributor Author

请执行一次 reformat

好了,用的android studio内置的Code Reformat,这样对吗

@Him188
Copy link
Member

Him188 commented Nov 18, 2022

不知道为什么你的 format 没有使用 EditorConfig
image

mirai 现有代码已经全部用这个配置 format 过, 理论上执行 reformat 不会修改现有代码.

@Him188 Him188 added t:bug 类型: bug t:enhancement 类型: 现有功能上的优化 s:console 子系统: mirai-console labels Nov 18, 2022
@Him188 Him188 modified the milestones: Backlog, 2.14.0-RC Nov 18, 2022
@Him188 Him188 added z:ready-to-merge 状态: PR 已经可以合并, 正在等待一些安排 and removed t:enhancement 类型: 现有功能上的优化 labels Nov 18, 2022
@Him188 Him188 merged commit 0e4d5ef into mamoe:dev Nov 18, 2022
@zhaodice
Copy link
Contributor Author

不知道为什么你的 format 没有使用 EditorConfig image

mirai 现有代码已经全部用这个配置 format 过, 理论上执行 reformat 不会修改现有代码.

哦哦哦!我是直接把代码单独拷贝到IDE然后执行的refomat,原来还有这种套路,学到了

@zhaodice zhaodice deleted the patch-1 branch November 19, 2022 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s:console 子系统: mirai-console t:bug 类型: bug z:ready-to-merge 状态: PR 已经可以合并, 正在等待一些安排
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants